package com.psytech.commons.configuration;

import java.io.File;
import java.util.Iterator;
import java.util.Properties;

import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;

public class ExtendedPropertiesConfiguration extends PropertiesConfiguration {

	public ExtendedPropertiesConfiguration(File file)
			throws ConfigurationException {
		super(file);
	}

	public Properties getProperties() {
		Properties properties = new Properties();
		Iterator keys = this.getKeys();
		while (keys.hasNext()) {
			String key = (String) keys.next();
			properties.setProperty(key, (String) this.getProperty(key));
		}

		return properties;
	}

}
